package net.gagnat.android.trackit.util;

import android.net.Uri;
import android.provider.BaseColumns;

public final class TrackItConstants {

	public static final String AUTHORITY = "net.gagnat.android.logit";
	public static final String LOG_TAG = "LogIt";

	private TrackItConstants() {
	}

	public static final class LinkTable implements BaseColumns {

		private LinkTable() {
		}

	}

	public static final class LogTagColumns implements BaseColumns {

		private LogTagColumns() {
		}

		public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/logtags");

		public static final String NAME = "name";

		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.google.logtag";
		public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.google.logtag";
		public static final String DEFAULT_SORT_ORDER = "name asc";
	}

	public static final class LogEntryColumns implements BaseColumns {

		private LogEntryColumns() {
		}

		/**
		 * The content:// style URL for this table
		 */
		public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/logentries");
		public static final Uri TAGS_URI = Uri.parse("contents://" + AUTHORITY + "/tags/logentry");

		public static final String TITLE = "title";
		public static final String TAGS = "tags";
		public static final String CREATED_DATE = "created";

		/**
		 * The MIME type of {@link #CONTENT_URI} providing a directory of log
		 * entries.
		 */
		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.google.logentry";

		/**
		 * The MIME type of a {@link #CONTENT_URI} sub-directory of a single log
		 * entry.
		 */
		public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.google.logentry";

		/**
		 * The default sort order for this table
		 */
		public static final String DEFAULT_SORT_ORDER = "created DESC";

	}

}
